<?php
include("../cIncludes.php");

if(isset($_POST['type'])){
	switch($_POST['type']){
		case 'settings':
			
			$db = new DB("settings");
			$db->sitetitle = $_POST['sitetitle'];
			$db->sitename = $_POST['sitename'];
			$db->siteurl = $_POST['siteurl'];
			$db->keywords = $_POST['keywords'];
			$db->update();			
			echo "Changing Settings";
		break;
	}
}

?>